package com.xie.headline.sso.controller;

import com.xie.headline.sso.common.JsonResult;
import com.xie.headline.sso.domain.dto.WmUserDto;
import com.xie.headline.sso.domain.vo.WmUserVO;
import com.xie.headline.sso.service.WmUserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xieluxing
 */
@Slf4j
@RestController
@RequestMapping("wemedia")
public class WmUserController {
    @Autowired
    private WmUserService wmUserService;

    @PostMapping("login/in")
    public JsonResult login(@RequestBody WmUserDto dto) {
        return wmUserService.loginByUserName(dto);
    }
}
